]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
13 years agooverview: use a bin for the main overview actor
Cosimo Cecchi [Fri, 1 Mar 2013 02:17:50 +0000 (21:17 -0500)]
overview: use a bin for the main overview actor

We'll pack the new messages indicator on top of the current overview
group, so we need to pack it into a ClutterBinLayout first.

https://bugzilla.gnome.org/show_bug.cgi?id=687787

13 years agomain: register with session manager explicitly
Ray Strode [Thu, 28 Feb 2013 15:43:39 +0000 (10:43 -0500)]
main: register with session manager explicitly

Mutter now makes session registration an explicit required
step.  This is so we can tell the session manager when
we're ready to move on to the next phase.

This commit calls the new Meta.register_with_session() api after we're
initialized.

https://bugzilla.gnome.org/show_bug.cgi?id=694876

13 years agoscroll-view-fade: Tweak easing at edges
Florian Müllner [Sat, 23 Feb 2013 00:37:05 +0000 (01:37 +0100)]
scroll-view-fade: Tweak easing at edges

Since commit b4f5f1e46174, the effect is eased in at the scroll
view's edges so that it does not appear out of nowhere. However,
the linear easing used is not the best option, as now the effect
appears so late that content near the edges ends up just being
cut off rather than faded out.
So adjust the easing function to have the effect appear faster.

https://bugzilla.gnome.org/show_bug.cgi?id=694327

13 years agoshellDBus: Add methods to handle key grabs
Florian Müllner [Sat, 11 Aug 2012 21:11:37 +0000 (23:11 +0200)]
shellDBus: Add methods to handle key grabs

Expose Mutter's external grab API on the bus, so gnome-settings-daemon
can refer keygrabbing to the shell.

https://bugzilla.gnome.org/show_bug.cgi?id=643111

13 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Fri, 1 Mar 2013 08:27:53 +0000 (09:27 +0100)]
Updated Basque language

13 years agosearch: fix description of results
Giovanni Campagna [Wed, 27 Feb 2013 16:54:09 +0000 (17:54 +0100)]
search: fix description of results

"description" is documented as a valid field for search result metas,
and ListSearchResults implements it, so pass it down to be used.
Also, don't wrap the description in quotes, so that the search provider
can decide if it is an excerpt from the searched text or something else.
And to that extent, set use_markup to true, so that terms can be
highlighted.

https://bugzilla.gnome.org/show_bug.cgi?id=694906

13 years agoworkspace: Fix bad window positions with small windows
Jasper St. Pierre [Thu, 28 Feb 2013 21:08:19 +0000 (16:08 -0500)]
workspace: Fix bad window positions with small windows

This can happen if you open two or three terminal windows, and then
open the overview -- they're not centered. The issue is that because
of the WINDOW_CLONE_MAXIMUM_SCALE clamping, the scale that is being
laid out is different from the scale that the layout was calculated
for.

Implement and document a hack-ish solution which simply keeps the
scale for the layout as originally calculated, but centers the
windows inside the cell.

https://bugzilla.gnome.org/show_bug.cgi?id=694902

13 years agoworkspace: Use the scaled width when calculating the total width
Jasper St. Pierre [Thu, 28 Feb 2013 21:01:15 +0000 (16:01 -0500)]
workspace: Use the scaled width when calculating the total width

This is a small inconsistency I found in the code after review.

https://bugzilla.gnome.org/show_bug.cgi?id=694902

13 years agoworkspace: Write a giant wall of text describing the algorithm
Jasper St. Pierre [Thu, 28 Feb 2013 20:50:57 +0000 (15:50 -0500)]
workspace: Write a giant wall of text describing the algorithm

I wrote this for me to find solutions to some problems we were having
with the current situation, so why not check it in?

https://bugzilla.gnome.org/show_bug.cgi?id=694902

13 years agoworkspace: Separate out per-window scaling as a separate variable
Jasper St. Pierre [Thu, 28 Feb 2013 20:00:59 +0000 (15:00 -0500)]
workspace: Separate out per-window scaling as a separate variable

Multiplication is linear, so we can split this out as a separate
component. This will make it easier to think of it as an additional
per-window scaling factor, rather than tweaking the scale a bit,
which is more correct to the model.

https://bugzilla.gnome.org/show_bug.cgi?id=694902

13 years agoworkspace: Remove unused variable
Jasper St. Pierre [Thu, 28 Feb 2013 19:23:19 +0000 (14:23 -0500)]
workspace: Remove unused variable

This typo seems to have been here since the very beginning;
no "state" variable appears anywhere.

https://bugzilla.gnome.org/show_bug.cgi?id=694902

13 years agoworkspace: Remove some additional features used for GridLayoutStrategy
Jasper St. Pierre [Tue, 26 Feb 2013 00:23:39 +0000 (19:23 -0500)]
workspace: Remove some additional features used for GridLayoutStrategy

While we won't tear down the entire strategy infrastructure, we want to
rework some layout code in the future, so just tear this piece out for
now.

https://bugzilla.gnome.org/show_bug.cgi?id=694902

13 years agolayout: Mark the correct monitor as fullscreen
Jasper St. Pierre [Thu, 28 Feb 2013 18:34:05 +0000 (13:34 -0500)]
layout: Mark the correct monitor as fullscreen

13 years agoextensionPrefs: Fix opening extension preferences on startup
Florian Müllner [Thu, 28 Feb 2013 13:50:56 +0000 (14:50 +0100)]
extensionPrefs: Fix opening extension preferences on startup

gnome-shell-extension-prefs supports opening a specific extension's
preferences directly from the command line by passing the UUID.
However this broke when extension loading was changed to be processed
asynchronously, as no extension has been loaded when the command
line argument is processed. Fix by deferring opening the extension's
preferences until all extensions have been loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=694858

13 years agoextensionUtil: Add ExtensionFinder::extensions-loaded signal
Florian Müllner [Thu, 28 Feb 2013 13:43:35 +0000 (14:43 +0100)]
extensionUtil: Add ExtensionFinder::extensions-loaded signal

Consumers might want to defer work until the initial loading of
extensions has finished, so add an appropriate signal.

https://bugzilla.gnome.org/show_bug.cgi?id=694858

13 years agoUpdated Greek translation
Dimitris Spingos [Thu, 28 Feb 2013 08:10:11 +0000 (10:10 +0200)]
Updated Greek translation

13 years agoShow the session list when needed
Matthias Clasen [Wed, 27 Feb 2013 04:50:29 +0000 (23:50 -0500)]
Show the session list when needed

Some of the conditions for showing the user list were not
properly inverted, causing the session list to be hidden
when it shouldn't be and shown when it shouldn't be.

https://bugzilla.gnome.org/show_bug.cgi?id=694784

13 years agolayout: Trigger the tray if one event passes the threshold
Jasper St. Pierre [Thu, 21 Feb 2013 22:21:25 +0000 (17:21 -0500)]
layout: Trigger the tray if one event passes the threshold

As a special-case to the "cap event" rules, this allows a heavy swipe
from top to bottom to allow triggering the tray without having to push
into it.

https://bugzilla.gnome.org/show_bug.cgi?id=694467

13 years agolayout: Cap each event to 15px of motion
Jasper St. Pierre [Thu, 21 Feb 2013 22:19:04 +0000 (17:19 -0500)]
layout: Cap each event to 15px of motion

When pressing against the bottom of the screen, we shouldn't
really take more than 15px from each event, to prevent spruious
mouse movements from opening the barrier.

https://bugzilla.gnome.org/show_bug.cgi?id=694467

13 years agolayout: Adjust the pressure barrier threshold values
Jasper St. Pierre [Thu, 21 Feb 2013 21:43:28 +0000 (16:43 -0500)]
layout: Adjust the pressure barrier threshold values

After a day of experimentation with Cosimo and Jon McCann, we
found that this was the best way to do this.

https://bugzilla.gnome.org/show_bug.cgi?id=694467

13 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Wed, 27 Feb 2013 14:59:02 +0000 (22:59 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

13 years agoUpdated Vietnamese translation
Nguyễn Thái Ngọc Duy [Tue, 26 Feb 2013 13:47:16 +0000 (20:47 +0700)]
Updated Vietnamese translation

13 years agopo/vi: import from Damned Lies
Nguyễn Thái Ngọc Duy [Tue, 26 Feb 2013 13:34:33 +0000 (20:34 +0700)]
po/vi: import from Damned Lies

13 years agoworkspaceThumbnails: remove custom scrolling code
Cosimo Cecchi [Mon, 25 Feb 2013 23:23:42 +0000 (18:23 -0500)]
workspaceThumbnails: remove custom scrolling code

Now that we listen to scroll event on the whole overview group, this
makes the thumbnail switcher scroll twice per-event.

13 years agolayout: Handle _NET_WM_FULLSCREEN_MONITORS
Adel Gadllah [Sat, 23 Feb 2013 21:02:17 +0000 (22:02 +0100)]
layout: Handle _NET_WM_FULLSCREEN_MONITORS

Mark all monitors that fullscreen when window is using
the _NET_WM_FULLSCREEN_MONITORS to be fullscreen on multiple monitors.

https://bugzilla.gnome.org/show_bug.cgi?id=646861

13 years agoCenter the search results as well
Jasper St. Pierre [Mon, 25 Feb 2013 19:48:06 +0000 (14:48 -0500)]
Center the search results as well

Use overlay_scrollbars and the same padding.

https://bugzilla.gnome.org/show_bug.cgi?id=694701

13 years agotweener: Look at the XSetting for disabling animations
Jasper St. Pierre [Mon, 25 Feb 2013 17:52:25 +0000 (12:52 -0500)]
tweener: Look at the XSetting for disabling animations

gnome-settings-daemon will be changed to override the XSetting in
the case where we're on a remote display rather than overwriting a
user setting, so we need to look at the XSetting here.

https://bugzilla.gnome.org/show_bug.cgi?id=694320

13 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Mon, 25 Feb 2013 17:35:23 +0000 (18:35 +0100)]
Updated Norwegian bokmål translation

13 years agoScreenShield: fix positioning of background with multimonitor
Giovanni Campagna [Thu, 21 Feb 2013 22:32:25 +0000 (23:32 +0100)]
ScreenShield: fix positioning of background with multimonitor

Previously, we would create one StBin per monitor, but each was positioned
at 0,0 and sized as the screen, so they would overlap and draw the box shadows
on top of the other backgrounds.
Instead, we need to size appropriately the bin, and then we need to position
the actual MetaBacgroundActor at 0,0, so add a flag to BackgroundManager
for this.
Also, get rid of MetaBackgroundGroup, they do nothing because the screenshield
is not a descendant of the MetaWindowGroup and because the widget in between
blocks the propagation of the visible region. At the same time, use a
widget, not a bin, because StBin requires you to set .child, not call add_child().

https://bugzilla.gnome.org/show_bug.cgi?id=694394

13 years agoFixed typo in string. Fixes bug #687248
Daniel Mustieles [Mon, 25 Feb 2013 13:27:31 +0000 (14:27 +0100)]
Fixed typo in string. Fixes bug #687248

13 years agoUpdated gujarati file
Sweta Kothari [Mon, 25 Feb 2013 11:09:49 +0000 (16:39 +0530)]
Updated gujarati file

13 years agoUpdated Slovenian translation
Matej Urbančič [Sun, 24 Feb 2013 20:34:43 +0000 (21:34 +0100)]
Updated Slovenian translation

13 years agoUpdated Polish translation
Piotr Drąg [Sun, 24 Feb 2013 00:55:12 +0000 (01:55 +0100)]
Updated Polish translation

13 years agoUpdated Czech translation
Adam Matoušek [Sun, 24 Feb 2013 00:18:25 +0000 (01:18 +0100)]
Updated Czech translation

13 years agoviewSelector: Don't focus search entry on whitespace
Florian Müllner [Fri, 22 Feb 2013 19:56:24 +0000 (20:56 +0100)]
viewSelector: Don't focus search entry on whitespace

We recently started to trim leading and trailing whitespace from
the search string, and not to trigger a search when the resulting
string was empty. However we still allow whitespace to trigger
type-ahead-find, so that the key focus is moved briefly to the
search entry and back to the stage, resulting in a disruptive
flickering of the entry.
Fix this by excluding whitespace from triggering type-ahead-find.

https://bugzilla.gnome.org/show_bug.cgi?id=694475

13 years agoxdnd: Only pick reactive actors
Adel Gadllah [Fri, 22 Feb 2013 18:58:38 +0000 (19:58 +0100)]
xdnd: Only pick reactive actors

This is the only sane way to get select windows in the overview,
as workspace._dropRect blocks our view otherwise.

13 years agoxdnd: Don't wait for the stage to be disabled when it is already visible
Adel Gadllah [Fri, 22 Feb 2013 18:26:17 +0000 (19:26 +0100)]
xdnd: Don't wait for the stage to be disabled when it is already visible

xdndHandler used to wait for the stage to show up before calling
global.init_xdnd() . Since commit 65303d027aa8 xdndHandler is initalized
later so the stage might be already visible at this point causing the
show signal never to be emitted and thus global.init_xdnd will never
be called.

Fix that by checking by calling global.init_xdnd without waiting for
the stage's show signal to be emitted, as the stage is guaranted to be
visible at this point.

13 years agoBackground: don't check draw-background key
Giovanni Campagna [Fri, 22 Feb 2013 16:41:11 +0000 (17:41 +0100)]
Background: don't check draw-background key

The key was removed from gsettings-desktop-schemas, GNOME should
always draw a background: the key existed to support xsetroot, but
we no longer read the _XROOTPMAP_ID.

https://bugzilla.gnome.org/show_bug.cgi?id=694463

13 years agoAppDisplay: fix allocation loop warnings
Giovanni Campagna [Wed, 20 Feb 2013 16:20:46 +0000 (17:20 +0100)]
AppDisplay: fix allocation loop warnings

Don't use a constraint to position the boxpointer horizontally. Instead,
use the right alignment flags and let the layout managers do their job.

https://bugzilla.gnome.org/show_bug.cgi?id=694284

13 years agowindowManager: Don't use show_all
Adel Gadllah [Fri, 22 Feb 2013 11:28:50 +0000 (12:28 +0100)]
windowManager: Don't use show_all

It is deprecated and does not make sense there anyway, so use show() instead.

https://bugzilla.gnome.org/show_bug.cgi?id=694441

13 years agoui: Don't use Clutter.Group
Adel Gadllah [Fri, 22 Feb 2013 11:23:56 +0000 (12:23 +0100)]
ui: Don't use Clutter.Group

It is deprecated use Clutter.Actor instead.

https://bugzilla.gnome.org/show_bug.cgi?id=694441

13 years agomain: Guard against NULL log_domain in default handler
Florian Müllner [Fri, 26 Oct 2012 16:52:07 +0000 (18:52 +0200)]
main: Guard against NULL log_domain in default handler

g_str_has_prefix() will assert when passed NULL, so we need to make
sure that we are passed a non-NULL log_domain first.

Spotted by <goughost<at>yahoo.com.cn>

https://bugzilla.gnome.org/show_bug.cgi?id=663601

13 years agoappDisplay: Apply the same padding to AllView and FrequentView
Florian Müllner [Thu, 21 Feb 2013 22:11:22 +0000 (23:11 +0100)]
appDisplay: Apply the same padding to AllView and FrequentView

We add some horizontal padding to the AllView's content to make
sure content does not end up underneath the scrollbar; while this
is not required in case of the FrequentView which does not have
a scrollbar, applying the same padding ensures that both views
end up with the same spacing, which makes switching between them
less disruptive.

https://bugzilla.gnome.org/show_bug.cgi?id=694261

13 years agoappDisplay: Center AllView content
Florian Müllner [Thu, 21 Feb 2013 21:49:42 +0000 (22:49 +0100)]
appDisplay: Center AllView content

If the AllView is scrolled, the vertical scrollbar will take away
some horizontal space on one side, resulting in the content ending
up slightly off-center.
Account for this by using overlay-scrollbars instead.

https://bugzilla.gnome.org/show_bug.cgi?id=694261

13 years agost-scroll-view: Add :overlay-scrollbars property
Florian Müllner [Thu, 21 Feb 2013 21:30:09 +0000 (22:30 +0100)]
st-scroll-view: Add :overlay-scrollbars property

If enabled, scrollbars take away from the allocation given to the
view's content. This is usually preferrable to painting the bars on
top of the content, but there are exceptions, for instance when the
content needs to be centered with regard to the view as a whole.
Add a :overlay-scrollbars property to account for those cases.

https://bugzilla.gnome.org/show_bug.cgi?id=694261

13 years agoappDisplay: Remove scroll view hack in FrequentView
Florian Müllner [Fri, 22 Feb 2013 03:29:57 +0000 (04:29 +0100)]
appDisplay: Remove scroll view hack in FrequentView

The frequent view should not be scrolled, but to work around the
icon grid overflowing, we used a (non-scrolling) scroll view anyway.
Now that IconGrid:fillParent allows us to avoid overflow, we can
remove this hack.

https://bugzilla.gnome.org/show_bug.cgi?id=694256

13 years agoiconGrid: Add fillParent property
Florian Müllner [Fri, 22 Feb 2013 03:23:34 +0000 (04:23 +0100)]
iconGrid: Add fillParent property

Setting this property will only display as many icons as fit the parent's
allocation, rather than overflowing.

https://bugzilla.gnome.org/show_bug.cgi?id=694256

13 years agoappDisplay: Remove unnecessary StBin from hierarchy
Florian Müllner [Thu, 21 Feb 2013 23:02:49 +0000 (00:02 +0100)]
appDisplay: Remove unnecessary StBin from hierarchy

The bin is used to top-align views that don't fill the entire height,
but the same can be achieved by setting appropriate expand properties.

13 years agomain: don't show stage until still frames are loaded
Ray Strode [Thu, 21 Feb 2013 19:29:56 +0000 (14:29 -0500)]
main: don't show stage until still frames are loaded

We sometimes map the stage before we've loaded a background on it
because of a race asynchronously loading the session mode.

This manifests as the startup animating starting over a white
background.

This commit defers showing the stage until after the still frames
are loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=694321

13 years agomessageTray: Fix warning when opening the tray
Jasper St. Pierre [Thu, 21 Feb 2013 04:37:54 +0000 (23:37 -0500)]
messageTray: Fix warning when opening the tray

As the tray hover handler will call _cancelTrayDwell, we need to
ensure this variable is initialized even if tray dwelling isn't.

https://bugzilla.gnome.org/show_bug.cgi?id=694336

13 years agoRevert "messageTray: Fix warning when opening the tray"
Jasper St. Pierre [Thu, 21 Feb 2013 16:51:12 +0000 (11:51 -0500)]
Revert "messageTray: Fix warning when opening the tray"

This reverts commit 7b06d34ba43ce7355d586e801066b839ef55c1c9.

https://bugzilla.gnome.org/show_bug.cgi?id=694336

13 years agomessageTray: Fix warning when opening the tray
Jasper St. Pierre [Thu, 21 Feb 2013 04:37:54 +0000 (23:37 -0500)]
messageTray: Fix warning when opening the tray

As the tray hover handler will call _cancelTrayDwell, we need to
ensure this variable is initialized even if tray dwelling isn't.

https://bugzilla.gnome.org/show_bug.cgi?id=694336

13 years agooverviewControls: don't set padding on the whole overview group
Cosimo Cecchi [Thu, 21 Feb 2013 15:44:32 +0000 (10:44 -0500)]
overviewControls: don't set padding on the whole overview group

Set it on the control slider actor instead. At the same time, remove
bottom padding from search results actor.

https://bugzilla.gnome.org/show_bug.cgi?id=694287

13 years agooverview: Keep open when a Control key is held
Florian Müllner [Thu, 21 Feb 2013 14:57:00 +0000 (15:57 +0100)]
overview: Keep open when a Control key is held

It is useful at times to perform several actions that would usually
close the overview (for instance launching an application) at once.
Currently we allow this by dragging items to a workspace rather than
just clicking it, but it's an odd metaphor with its own set of
problems.
Introduce an alternative approach (inspired by file selection in
file managers) by keeping the overview open if a Control key is
held down.

https://bugzilla.gnome.org/show_bug.cgi?id=686984

13 years agooverviewControls: fade view selector and thumbnails slider on DnD
Cosimo Cecchi [Mon, 18 Feb 2013 04:45:24 +0000 (23:45 -0500)]
overviewControls: fade view selector and thumbnails slider on DnD

When an item is dragged from a page that is not the windows one, the
only possible target is the dash, so fade out the rest.

https://bugzilla.gnome.org/show_bug.cgi?id=686984

13 years agoWorkspaceThumbnail: fix mutter warning
Giovanni Campagna [Thu, 21 Feb 2013 14:53:39 +0000 (15:53 +0100)]
WorkspaceThumbnail: fix mutter warning

Pass a proper timestamp to workspace activation functions

https://bugzilla.gnome.org/show_bug.cgi?id=694365

13 years agoUpdated Russian translation
Yuri Myasoedov [Thu, 21 Feb 2013 14:22:27 +0000 (18:22 +0400)]
Updated Russian translation

13 years agoiconGrid: Take extra spacing into account for height requests
Jasper St. Pierre [Wed, 20 Feb 2013 02:18:48 +0000 (21:18 -0500)]
iconGrid: Take extra spacing into account for height requests

This fixes the clipped app picker in the overview.

https://bugzilla.gnome.org/show_bug.cgi?id=694234

13 years agolg: add a reference to lookingGlass in the Extensions tab.
Alban Crequy [Thu, 14 Feb 2013 15:28:43 +0000 (15:28 +0000)]
lg: add a reference to lookingGlass in the Extensions tab.

When the user clicks on "View Source" or "Web Page" in the "Extensions" tab of
looking glass, the callback _onViewSource() or _onWebPage() is called and they
try to close looking glass: this._lookingGlass.close();

But it does not work and generate the exception "this._lookingGlass is
undefined". This patch fixes that.

https://bugzilla.gnome.org/show_bug.cgi?id=693814

13 years agoWorkspace: fix stacking of window clones
Giovanni Campagna [Wed, 20 Feb 2013 18:33:29 +0000 (19:33 +0100)]
Workspace: fix stacking of window clones

We must set the stack above property of window clones, or they will
not stack themselves properly when a drag is cancelled.

https://bugzilla.gnome.org/show_bug.cgi?id=694292

13 years agodash: add a workaround for Clutter bug 692744
Giovanni Campagna [Mon, 28 Jan 2013 22:22:23 +0000 (23:22 +0100)]
dash: add a workaround for Clutter bug 692744

https://bugzilla.gnome.org/show_bug.cgi?id=690643

13 years agodash: fix icon animation
Giovanni Campagna [Sat, 22 Dec 2012 14:26:12 +0000 (15:26 +0100)]
dash: fix icon animation

animateIn and animateOut should not reset the scale, otherwise
extra animate calls (which are possible because the diff algorithm
in _redisplay is not optimal) cause unneeded movement.
Therefore, create new items hidden, and have the creator call
animateIn or set the scale/opacity properties manually.
adjustIconSize must be changed to always set the icon size temporarily,
otherwise the first time it computes the icon size with 0 scale.

https://bugzilla.gnome.org/show_bug.cgi?id=690643

13 years agodash: fix allocation loop when increasing icon size
Giovanni Campagna [Sat, 22 Dec 2012 14:24:11 +0000 (15:24 +0100)]
dash: fix allocation loop when increasing icon size

The DashActor will known to allocate the show apps button only if the
icon size is (temporarily) too big for the containing box, therefore
it should request just that as the minimum size.
This solves a glitch that happened when removing a favorite and at the
same time causing the dash to expand.

https://bugzilla.gnome.org/show_bug.cgi?id=690643

13 years agodash: turn DashItemContainer into a proper St.Widget
Giovanni Campagna [Sat, 22 Dec 2012 13:57:06 +0000 (14:57 +0100)]
dash: turn DashItemContainer into a proper St.Widget

This removes a number of unneeded ._delegate accesses and cleans up
the code.

https://bugzilla.gnome.org/show_bug.cgi?id=690643

13 years agoBump version to 3.7.90
Florian Müllner [Wed, 20 Feb 2013 17:25:26 +0000 (18:25 +0100)]
Bump version to 3.7.90

Update NEWS.

13 years agoworkspacesView: Remove some unused variables
Florian Müllner [Wed, 20 Feb 2013 07:24:57 +0000 (08:24 +0100)]
workspacesView: Remove some unused variables

More left-overs from the custom swipe-scrolling code.

https://bugzilla.gnome.org/show_bug.cgi?id=686639

13 years agoworkspacesView: Allow workspace switching via scroll wheel
Florian Müllner [Mon, 22 Oct 2012 15:39:46 +0000 (17:39 +0200)]
workspacesView: Allow workspace switching via scroll wheel

This is already possible over the workspace switcher, extend this
behavior to the entire window picker area.

https://bugzilla.gnome.org/show_bug.cgi?id=686639

13 years agooverview: Remove some unused variables
Florian Müllner [Wed, 20 Feb 2013 11:28:10 +0000 (12:28 +0100)]
overview: Remove some unused variables

Those are left-overs from the custom swipe-scroll implementation.

https://bugzilla.gnome.org/show_bug.cgi?id=686639

13 years agooverview: Expose scroll-events
Florian Müllner [Mon, 22 Oct 2012 15:39:19 +0000 (17:39 +0200)]
overview: Expose scroll-events

Using the scroll wheel in the window picker should switch workspaces.
As the picker doesn't have a visible boundary though, it makes sense
to accept scroll-event for the entire overview area. Rather than
making the overview's main actor public, expose scroll-events via
a signal.

https://bugzilla.gnome.org/show_bug.cgi?id=686639

13 years agoworkspace: Remove zooming of window previews
Florian Müllner [Mon, 22 Oct 2012 14:46:36 +0000 (16:46 +0200)]
workspace: Remove zooming of window previews

Using the scroll wheel to switch workspaces makes sense, but it is
currently only supported on the workspace switcher, as it conflicts
with window zooming in the picker.
As changing workspaces is far more useful than the zoom feature,
remove the latter in order to "free" the scroll wheel for workspace
switching.

https://bugzilla.gnome.org/show_bug.cgi?id=686639

13 years agoendSessionDialog: don't process response until closed
Ray Strode [Wed, 20 Feb 2013 18:30:26 +0000 (13:30 -0500)]
endSessionDialog: don't process response until closed

Right now if a user logs out, they are thrown to the login screen
imediately, without even seeing the dialog close.

This commit fades the dialog out before processing the logout.

https://bugzilla.gnome.org/show_bug.cgi?id=694296

13 years agomodalDialog: emit 'closed' signal when dialog is closed
Ray Strode [Wed, 20 Feb 2013 18:15:51 +0000 (13:15 -0500)]
modalDialog: emit 'closed' signal when dialog is closed

Opening and closing a modal dialog is not instant. There
is a transition animation involved.  When the dialog is
finished opening, it currently emits the "opened" signal.

When it's finished closing, however, it doesn't emit a
"closed" signal.  This means, there's not a good way to
know when the dialog finishes closing.

This commit adds the "closed" signal.

https://bugzilla.gnome.org/show_bug.cgi?id=694296

13 years agomodalDialog: drop global.get_current_time() arguments to close
Ray Strode [Wed, 20 Feb 2013 18:12:42 +0000 (13:12 -0500)]
modalDialog: drop global.get_current_time() arguments to close

Modal dialogs take an optional timestamp in their close method.
If the timestamp is not passed in, then global.get_current_time()
is used.

Some callers of the close method pass in global.get_current_time()
unnecessarly (since it's the default).

This commit drops the argument for those cases.

https://bugzilla.gnome.org/show_bug.cgi?id=694296

13 years agobackgroundMenu: Rename "System Settings" to "Settings"
António Fernandes [Wed, 20 Feb 2013 18:43:13 +0000 (18:43 +0000)]
backgroundMenu: Rename "System Settings" to "Settings"

And reverse menu order in order to avoid it reading "Change Background… Settings"

"System Settings" shouldn't be used because it's not used to mean the control-center in any other place.

https://bugzilla.gnome.org/show_bug.cgi?id=694290

13 years agogdm: make entry reactive when asking user question
Ray Strode [Wed, 20 Feb 2013 15:40:01 +0000 (10:40 -0500)]
gdm: make entry reactive when asking user question

We disable the entry after a user answers a question while we
process it, but we don't reactivate it later if asked another
one.

This commit makes sure the entry is always reactive when we
are waiting for an answer from the user.

https://bugzilla.gnome.org/show_bug.cgi?id=691806

13 years agotheme: Remove some unused css classes
Adel Gadllah [Wed, 20 Feb 2013 17:09:41 +0000 (18:09 +0100)]
theme: Remove some unused css classes

13 years agotheme: remove unused references to dash-search-button
Allan Day [Wed, 20 Feb 2013 16:21:20 +0000 (16:21 +0000)]
theme: remove unused references to dash-search-button

The search provider buttons have been removed, so we don't need
their styling in the css.

https://bugzilla.gnome.org/show_bug.cgi?id=694289

13 years agotheme: use standard button styling for the app view switcher
Allan Day [Wed, 20 Feb 2013 13:31:13 +0000 (13:31 +0000)]
theme: use standard button styling for the app view switcher

The switcher widget for all / frequent applications should use the
standand button styling. This is more consistent.

https://bugzilla.gnome.org/show_bug.cgi?id=694265

13 years agoappDisplay: Fix view-switcher buttons in RTL locales
Florian Müllner [Wed, 20 Feb 2013 16:36:27 +0000 (17:36 +0100)]
appDisplay: Fix view-switcher buttons in RTL locales

https://bugzilla.gnome.org/show_bug.cgi?id=694265

13 years agoworkspacesView: Treat 'gesture-cancel' the same as 'gesture-end'
Florian Müllner [Wed, 20 Feb 2013 07:23:51 +0000 (08:23 +0100)]
workspacesView: Treat 'gesture-cancel' the same as 'gesture-end'

When a swipe scroll completes, we scroll the active workspace into
view. This works fine if the gesture is completed properly by
emitting 'gesture-end', but not when Clutter considers the gesture
cancelled - in that case, the view remains stuck in an intermediate
position. To fix, treat 'gesture-cancel' the same as 'gesture-end'.

https://bugzilla.gnome.org/show_bug.cgi?id=689394

13 years agolayout: Clean up consoleBackgroundGroup
Jasper St. Pierre [Wed, 20 Feb 2013 01:31:56 +0000 (20:31 -0500)]
layout: Clean up consoleBackgroundGroup

We shouldn't leave a reference to a destroyed actor just hanging
around.

https://bugzilla.gnome.org/show_bug.cgi?id=694227

13 years agolayout: Rebuild struts and the input region when the Shell starts up
Jasper St. Pierre [Wed, 20 Feb 2013 04:21:35 +0000 (23:21 -0500)]
layout: Rebuild struts and the input region when the Shell starts up

This means that windows will be positioned correctly with respect
to the panel when the shell starts up, and there won't be adjusting
after the session animation zooms in entirely.

https://bugzilla.gnome.org/show_bug.cgi?id=694227

13 years agolayout: Remove freezeUpdateRegions/thawUpdateRegions
Jasper St. Pierre [Wed, 20 Feb 2013 04:17:16 +0000 (23:17 -0500)]
layout: Remove freezeUpdateRegions/thawUpdateRegions

Due to a bad rebase causing freezeUpdateCount to never get initialized,
these functions effectively did nothing. Since we're going to go to a
different mechanism for freezing region updates, let's just tear these
out now instead of fixing them before tearing them out.

https://bugzilla.gnome.org/show_bug.cgi?id=694227

13 years agolayout: Don't bother updating the regions in the greeter
Jasper St. Pierre [Wed, 20 Feb 2013 02:06:33 +0000 (21:06 -0500)]
layout: Don't bother updating the regions in the greeter

The greeter is always full-screen, so this should never matter.

https://bugzilla.gnome.org/show_bug.cgi?id=694227

13 years agopanel: Don't try to begin a grab op while something else has taken a grab
Jasper St. Pierre [Wed, 20 Feb 2013 01:27:11 +0000 (20:27 -0500)]
panel: Don't try to begin a grab op while something else has taken a grab

https://bugzilla.gnome.org/show_bug.cgi?id=694241

13 years agoAppDisplay: fix undefined variable reference
Giovanni Campagna [Wed, 20 Feb 2013 15:16:12 +0000 (16:16 +0100)]
AppDisplay: fix undefined variable reference

https://bugzilla.gnome.org/show_bug.cgi?id=694282

13 years agoAppDisplay: fake a release event to dnd when opening the menu
Giovanni Campagna [Wed, 20 Feb 2013 15:55:02 +0000 (16:55 +0100)]
AppDisplay: fake a release event to dnd when opening the menu

PopupMenuManager eats the next release event, which would otherwise close
the menu, so we need to tell dnd that we're handling it, and no drag should
be started, so it can ungrab the pointer and restore state.

https://bugzilla.gnome.org/show_bug.cgi?id=694276

13 years agoAppDisplay: fix folder popup arrow
Giovanni Campagna [Wed, 20 Feb 2013 13:13:46 +0000 (14:13 +0100)]
AppDisplay: fix folder popup arrow

The arrow origin must be in the coordinate space of the box pointer,
but it cannot be calculated when the box pointer is shown, because it's
not allocated yet, so pass the source to the boxpointer and adjust
the arrow at the next paint.

https://bugzilla.gnome.org/show_bug.cgi?id=694264

13 years agokeyboard: destroy actors when a group is removed
Daiki Ueno [Wed, 20 Feb 2013 10:10:29 +0000 (19:10 +0900)]
keyboard: destroy actors when a group is removed

We can't reuse key actors since signals connected to them are
associated to the original group object.
Fix of commit 824fbe09c2a4f59b009a3dd57d40ec752c2efc89.

https://bugzilla.gnome.org/show_bug.cgi?id=681735

13 years agost-bin: fix a typo in the property setter
Cosimo Cecchi [Wed, 20 Feb 2013 04:00:25 +0000 (23:00 -0500)]
st-bin: fix a typo in the property setter

This got unnoticed for more than 3 years!

https://bugzilla.gnome.org/show_bug.cgi?id=694234

13 years agobackground: don't call destroy() from the destroy handler
Cosimo Cecchi [Wed, 20 Feb 2013 05:04:34 +0000 (00:04 -0500)]
background: don't call destroy() from the destroy handler

We're calling destroy() in a callback of the destroy handler, which
results in an X server crash at login.

https://bugzilla.gnome.org/show_bug.cgi?id=694240

13 years agobackground: destroy actors don't remove them from their parent
Ray Strode [Wed, 20 Feb 2013 02:50:40 +0000 (21:50 -0500)]
background: destroy actors don't remove them from their parent

This reads better, and it also fixes a warning when background
is changed while transitioning to the overview.

https://bugzilla.gnome.org/show_bug.cgi?id=694227

13 years agoscreenShield: don't use Bin for BackgroundManager container
Ray Strode [Wed, 20 Feb 2013 02:51:41 +0000 (21:51 -0500)]
screenShield: don't use Bin for BackgroundManager container

St.Bin() really only expects one child at a time, and the
BackgroundManager will add two. This can cause assertion
failures when destroying one of the background actors.

https://bugzilla.gnome.org/show_bug.cgi?id=694227

13 years agobackground: s/NULL/null/
Ray Strode [Wed, 20 Feb 2013 02:07:44 +0000 (21:07 -0500)]
background: s/NULL/null/

woops.

13 years agolayout: Fix some indentation
Jasper St. Pierre [Wed, 20 Feb 2013 01:41:29 +0000 (20:41 -0500)]
layout: Fix some indentation

13 years agoBackground: ignore cancellation errors
Ray Strode [Wed, 20 Feb 2013 00:55:56 +0000 (01:55 +0100)]
Background: ignore cancellation errors

If the request cancellable is cancelled, the requesting background was
destroyed, so don't bother reporting the result.

https://bugzilla.gnome.org/show_bug.cgi?id=694227

13 years agolayout: Hide the message tray and OSK during the startup animation
Jasper St. Pierre [Wed, 20 Feb 2013 00:56:56 +0000 (19:56 -0500)]
layout: Hide the message tray and OSK during the startup animation

https://bugzilla.gnome.org/show_bug.cgi?id=694227

13 years agolayout: invert isGreeter check
Ray Strode [Wed, 20 Feb 2013 01:21:06 +0000 (20:21 -0500)]
layout: invert isGreeter check

I somehow lost an exclamation point.

https://bugzilla.gnome.org/show_bug.cgi?id=694227

13 years agolayout: add back startingUp state variable
Ray Strode [Wed, 20 Feb 2013 01:20:44 +0000 (20:20 -0500)]
layout: add back startingUp state variable

I dropped it on accident during last minute refactoring

https://bugzilla.gnome.org/show_bug.cgi?id=694227

13 years agoBackgroundMenu: fix regression from new background handling
Giovanni Campagna [Wed, 20 Feb 2013 01:18:14 +0000 (02:18 +0100)]
BackgroundMenu: fix regression from new background handling

BackgroundMenu must ensure the actor it attaches to is reactive, and
the layout manager must create a background menu for the first background
too.

https://bugzilla.gnome.org/show_bug.cgi?id=694227